download php ball
for the apache bit
---------------------
tar -zxvf httpd...tgz
cd httpd
sudo ./configure --prefix=/usr/local/apache --enable-module=so --enable-rewrite=shared
for the php bit
-----------------
./configure (without any options)
finally breaks with: configure: error: xml2-config not found. Please check your libxml2 installation.
so download and install libxml2
---------------------------------
sudo wget ftp://xmlsoft.org/libxml2/libxml2-2.6.28.tar.gz
sudo tar -zxvf libxml2-2.6.28.tar.gz
cd libxml2
as root:
./configure; make; make install
then re-try with compiling php:
I will want the mysql server installed
--------------------------------------
Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory
this means you forgot to compile your php as a dso. PHP will still exist as an executable. You can see this just by typing php -v :
chris@snackerjack-lx:/usr/local/apache/conf$ php -v
PHP 5.2.3 (cli) (built: Jun 4 2007 10:47:37)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies